package sgc.struc;

import java.util.Date;

public class MovStock_h {
	
	int company;
	String doc_type;
	int doc_nro;
	Date fecha;
	int move_type;
	String detail;
	String user;
	int suplier;
	int customer;
	public int getCompany() {
		return company;
	}
	public void setCompany(int company) {
		this.company = company;
	}
	public String getDoc_type() {
		return doc_type;
	}
	public void setDoc_type(String doc_type) {
		this.doc_type = doc_type;
	}
	public int getDoc_nro() {
		return doc_nro;
	}
	public void setDoc_nro(int doc_nro) {
		this.doc_nro = doc_nro;
	}
	public Date getFecha() {
		return fecha;
	}
	public void setFecha(Date fecha) {
		this.fecha = fecha;
	}
	public int getMove_type() {
		return move_type;
	}
	public void setMove_type(int move_type) {
		this.move_type = move_type;
	}
	public String getDetail() {
		return detail;
	}
	public void setDetail(String detail) {
		this.detail = detail;
	}
	public String getUser() {
		return user;
	}
	public void setUser(String user) {
		this.user = user;
	}
	public int getSuplier() {
		return suplier;
	}
	public void setSuplier(int suplier) {
		this.suplier = suplier;
	}
	public int getCustomer() {
		return customer;
	}
	public void setCustomer(int customer) {
		this.customer = customer;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + company;
		result = prime * result + customer;
		result = prime * result + ((detail == null) ? 0 : detail.hashCode());
		result = prime * result + doc_nro;
		result = prime * result
				+ ((doc_type == null) ? 0 : doc_type.hashCode());
		result = prime * result + ((fecha == null) ? 0 : fecha.hashCode());
		result = prime * result + move_type;
		result = prime * result + suplier;
		result = prime * result + ((user == null) ? 0 : user.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		MovStock_h other = (MovStock_h) obj;
		if (company != other.company)
			return false;
		if (customer != other.customer)
			return false;
		if (detail == null) {
			if (other.detail != null)
				return false;
		} else if (!detail.equals(other.detail))
			return false;
		if (doc_nro != other.doc_nro)
			return false;
		if (doc_type == null) {
			if (other.doc_type != null)
				return false;
		} else if (!doc_type.equals(other.doc_type))
			return false;
		if (fecha == null) {
			if (other.fecha != null)
				return false;
		} else if (!fecha.equals(other.fecha))
			return false;
		if (move_type != other.move_type)
			return false;
		if (suplier != other.suplier)
			return false;
		if (user == null) {
			if (other.user != null)
				return false;
		} else if (!user.equals(other.user))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "MovStock_h [company=" + company + ", doc_type=" + doc_type
				+ ", doc_nro=" + doc_nro + ", fecha=" + fecha + ", move_type="
				+ move_type + ", detail=" + detail + ", user=" + user
				+ ", suplier=" + suplier + ", customer=" + customer + "]";
	}

	
}
